package com.knight.study.patterns.tujie.template;

/**
 * @Author knight
 * @Date 2024/9/5 18:51
 */

public abstract class AbstractDisplay {
    public abstract void open();
    public abstract void print();
    public abstract void close();
    public final void display() {
        open();
        for (int i = 0; i < 5; i++) {
            print();
        }
        close();
    }
}
